<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{/*块级元素,独占一行,可以修改元素的宽高*/
      border: 1px solid red;
      width: 100px;
      height: 30px;
    }
    span{/*行内元素,共占一行, 不能修改元素的宽高*/
      border: 1px solid red;
      width: 100px;
      height: 30px;
    }
    img{/*行内块元素,共占一行, 并且可以修改元素宽高. */
      width: 100px;height: 100px;
    }
    a{
      background-color: #0aa1ed;
      display: block;/*超链接属于行内元素,修改为宽高,必须改成为行内块或块级*/
      width: 132px;height: 40px;
      text-align: center;
      line-height: 40px;
      color: white;
      text-decoration: none;
      font-size: 20px;
      border-radius: 3px;/*设置圆角,值越大越圆*/
    }
  </style>
</head>
<body>
<a href="">查看详情</a>
<img src="../1.jpg">
<img src="../1.jpg">
<img src="../1.jpg">
<img src="../1.jpg">
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>